#pragma once
#include "Hash_bucket.h"

namespace bit
{
	template <class K>
	class unordered_set
	{

		struct _setKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename hash_bucket::Hashtable<K, K, _setKeyOfT>::iterator iterator;
		iterator begin()
		{
			return _ht.begin();
		}

		iterator end()
		{
			return _ht.end();
		}

		bool insert(const K& key)
		{
			return _ht.Insert(key);
		}
	private:
		hash_bucket::Hashtable<K, K, _setKeyOfT> _ht;
	};
}

